#ifndef __APC_SCT_H_
#define __APC_SCT_H_

#include "at32project_header.h"
#include "core_spi_port.h"


#define EventSCT_MAX_LENGTH	12
#define SPI_AUDIO_MAX_LENGTH	8

void apc_sct_task_create(void);
uint8_t get_slot_number(void);
int32_t get_sync_flag(void);

int32_t get_dfu_now_state(uint32_t tick);
int32_t write_data_transfer_event(uint8_t cmd , void * data , size_t length);

int32_t spi_write_audio_fifo(uint8_t * data);
int32_t spi_read_audio_fifo(uint8_t * data);

#endif
